import request from '@/utils/request'

// 查询房间床位列表
export function listTbbed(query) {
  return request({
    url: '/apartment/tbbed/list',
    method: 'get',
    params: query
  })
}

// 查询房间床位详细
export function getTbbed(id) {
  return request({
    url: '/apartment/tbbed/' + id,
    method: 'get'
  })
}

// 新增房间床位
export function addTbbed(data) {
  return request({
    url: '/apartment/tbbed',
    method: 'post',
    data: data
  })
}

// 修改房间床位
export function updateTbbed(data) {
  return request({
    url: '/apartment/tbbed',
    method: 'put',
    data: data
  })
}

// 删除房间床位
export function delTbbed(id) {
  return request({
    url: '/apartment/tbbed/' + id,
    method: 'delete'
  })
}
